<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <title><%= title %></title>
    <script src="/javascripts/jquery-2.1.4.js"></script>
    <!--script src="http://code.jquery.com/jquery-1.10.2.min.js"></script-->
    
  	
  	<script src="/javascripts/bootstrap/js/bootstrap.js"></script>

    <!-- Bootstrap core CSS -->
    <link href="/javascripts/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="/javascripts/bootstrap/css/carousel.css" rel="stylesheet">
    <link href="/javascripts/bootstrap/css/docs.css" rel="stylesheet">




    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
  </head>

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <!--a class="navbar-brand" href="/">CMS</a-->
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><a href="/">主页</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">实验 <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="/testd">增删改查</a></li>
                <li><a href="/reqforword">请求转发</a></li>
              </ul>
            </li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">开放平台 <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="/api_desc">API申请说明</a></li>
                <li><a href="/api_apply">API权限申请</a></li>
              </ul>
            </li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">权限管理 <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="/mnguser">管理用户</a></li>
                <li><a href="/mngrole">管理角色</a></li>
                <li><a href="/mngmenu">管理菜单</a></li>
              </ul>
            </li>
          </ul>

          <ul class="nav navbar-nav navbar-right">
            <li><p class="navbar-text">欢迎！<%=user%></p></li>
            
            <% if (user != '') {%>
              <li><a href="/login/logout"><span class="glyphicon glyphicon-log-out"></span> 退出</a></li>
            <% } else { %>
              <li><a href="/register"><span class="glyphicon glyphicon-user"></span> 注册</a></li>
              <li><a href="/login"><span class="glyphicon glyphicon-log-in"></span> 登录</a></li>
            <% } %>
          </ul>
        </div><!--/.navbar-collapse -->
      </div>
    </nav>